import axios from 'axios'
import request from '@/utils/request'

// 获取模型列表接口
export function modelList (query) {
  return request({
    url: '/api/camunda/model-list',
    baseURL: axios.defaults.baseURL,
    method: 'post',
    data: query
  })
}

// 创建流程模型
export function createProgressModel (data) {
  return request({
    url: '/api/camunda/create-model',
    baseURL: axios.defaults.baseURL,
    method: 'post',
    data: data
  })
}
// 更新流程模型
export function updateProgressModel (data) {
  return request({
    url: '/api/camunda/update-model',
    baseURL: axios.defaults.baseURL,
    method: 'post',
    data: data
  })
}
// 更新流程模型
export function getProgressModel (data) {
  return request({
    url: '/api/camunda/get-model',
    baseURL: axios.defaults.baseURL,
    method: 'post',
    data: data
  })
}
// 获取流程列表
export function progressList (query) {
  return request({
    url: '/api/camunda/progress-list',
    baseURL: axios.defaults.baseURL,
    method: 'post',
    data: query
  })
}
